#ifndef QERREUR_H
#define QERREUR_H

#include <QObject>
#include <QColor>

#include "error_define.h"

class QErreur : public QObject
{
	Q_OBJECT

public:
	QErreur(QString text,QString key,quint32 importance,QColor color,QObject *parent=0);
	~QErreur();
	QString key() const { return m_key; }
	QColor color() const { return m_color; }
	quint32 importance() const { return m_importance; }
	QString description(QList<quint32> lines);
private:
	QString m_text;
	QString m_key;
	quint32 m_importance;
	QColor m_color;
};

#endif // QERREUR_H
